from django.db import models

# Create your models here.
class Student(models.Model):
    uid = models.AutoField(primary_key=True)
    username = models.CharField( max_length=30, blank=True, null=True)
    password = models.CharField(max_length=40, blank=True, null=True)
    regtime = models.DateTimeField(blank=True, null=True)
    sex = models.IntegerField(blank=True, null=True)
    is_active = models.IntegerField(default=1)

    class Meta:
        # managed = False
        db_table = 'student'